#ifndef TEST_H
#define TEST_H

#include <QDialog>
#include "book.h"
#include "student.h"
#include <utils.h>
#include <utils.h>
#include "revise.h"
using namespace bookandrecord;
using namespace student;
namespace Ui {
class test;
}

class test : public QDialog
{
    Q_OBJECT

public:
    explicit test(QWidget *parent = nullptr);
    ~test();
    void show(vector<Menu*>menuList);
    void showstu(vector<Student*>stuList);
    void showstu_(vector<Student*>stuList,int confnum);
    void showbook_(vector<Book*>bookList,int confnum);
signals:
    void sendData(Student*);
private slots:
    void on_pushButton_7_clicked();
    bool del(int ID);
    bool re(Student *stu);


    void on_pushButton_17_clicked();

    void on_pushButton_5_clicked();

    void on_pushButton_6_clicked();

    void on_pushButton_13_clicked();

    void on_pushButton_9_clicked();

    void on_pushButton_18_clicked();

private:
    Ui::test *ui;
    revise *reviseo;
    int page;
     vector<Student*> stuList;
     int pagesize;
};

#endif // TEST_H
